﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ConceptsFramework.AbstractConceptElements;
using ConceptsFramework.ConceptResults;
using ConceptsFramework.ConceptsQueryEngine;
using ConceptsFramework.Containers.Global;

namespace PatternExplorer.QueryBuilder
{
    public class ContainerQueryHolder : AbstractQueryHolder
    {
        public override ResultSet Query(ResultSet inputSet)
        {
            if (inputSet.InnerSet.Count == 0)
            {
                if (inputSet.CurrentSet.Count==1)
                {
                    var queryResult = Query(inputSet.CurrentSet[0]);
                    return queryResult;
                }
            }
            return null;
        }

        private ResultSet Query(AbstractBindableConcept aConcept)
        {
            // RelationshipsGroup containRelationshipGroup =
            //    GlobalRelationshipsSingletonContainer.Instance.GetCluster("TYPECLUSTER").Clusters.First(group => @group.MetaData == "ConceptsFramework.DerivedRelationships.HostRelationship");
            
            
            return null;
        }

    }
}
